package com.desmart.renjiao;

import com.alibaba.android.arouter.launcher.ARouter;
import com.lemon.library.base.BaseApplication;
import com.lemon.library.config.HttpConfig;
import com.lemon.library.utils.Utils;

public class App extends BaseApplication {

    private static String userName;

    @Override
    public void onCreate() {
        super.onCreate();

        Utils.init(this);
        ARouter.init(this);
        initConfig();
    }

    public void initConfig() {
        HttpConfig.BASE_URL = "http://192.168.207.13:8080";
        HttpConfig.BASE_URL1 = "http://192.168.207.33";
        HttpConfig.H5URL = "";
        HttpConfig.isDebug = BuildConfig.DEBUG;
        HttpConfig.URL_CACHE = getExternalCacheDir().getAbsolutePath();
    }

    public static String getUserName() {
        return userName;
    }

    public static void setUserName(String userName) {
        App.userName = userName;
    }
}
